const path = require('path')
module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  outputDir: 'dxWeUi',
  assetsDir: '',
  lintOnSave: process.env.NODE_ENV !== 'production',
  indexPath: 'index.html',
  productionSourceMap: false,
  devServer: {
    port: 8081,
    open: false,
    proxy: {
      '/leo-medicine-operate': {
        //target:'http://syxwx.jslife.com.cn',
        //target:'http://10.1.22.53:8012',//赵一鹏
        //target:'https://wx.jslife.com.cn',
        target: 'http://localhost:8201', // 测试环境
        changeOrigin: true,
        pathRewrite: {
          '^/leo-medicine-operate': '/leo-medicine-operate'
        },
      }
    }
  }
  
};
